package lianxi01;

import java.util.Scanner;

public class LianXi7 {
    public static void main(String[] args) {
        //循环录入10个学生的成绩，统计分数大于等于80分的学生比例
        int shu = 0;
        for (int i=0;i<10;i++){
            System.out.println("请第"+(i+1)+"位同学输入你的成绩：");
            Scanner scanner = new Scanner(System.in);
            int num = scanner.nextInt();
            System.out.println("第"+(i+1)+"位同学的成绩为："+num);
            if (num>=80){
               shu++;
               continue;
            }
        }
        double a = shu/10;
        System.out.println("大于等于80分的比例为："+a);
    }
}
